package com.block.channel.enums;

import lombok.Getter;

@Getter
public enum RespCodeEnum {

    SUCCESS("0001", "成功"),
    EXCEPTION("9999", "系统异常，联系管理员"),
    PARAM_ERROR("9998", "参数错误"),
    APP_INFO_EMPTY("9997", "没有可用appKey信息"),
    APP_INFO_UNABLE("9996", "appKey状态不可用"),
    SIGN_VERIFY_ERROR("9995", "签名校验失败"),
    CHANNEL_INFO_ERROR("9994", "渠道信息错误"),

    CHECK_USER_ERROR("1001", "撞库失败"),
    REGISTER_USER_ERROR("1002", "联登注册失败"),
    USER_HAD_EXIST("1003", "用户已经注册"),
    ;

    String code;
    String message;

    RespCodeEnum(String code, String messgae){
        this.code = code;
        this.message =  messgae;
    }

    public RespCodeEnum setMessage(String message) {
        this.message = message;
        return this;
    }
}
